package com.shuosen.gmall.service;

import com.shuosen.gmall.bean.PaymentInfo;

public interface PaymentService {

    void savePaymentInfo(PaymentInfo paymentInfo);

    PaymentInfo getPaymentInfo(PaymentInfo paymentInfo);

    void updatePaymentInfo(String out_trade_no, PaymentInfo paymentInfoUpd);

    //orderId result
    public void sendPaymentResult(PaymentInfo paymentInfo,String result);

    //根据outtradeno查询状态
    boolean checkPayment(PaymentInfo  paymentInfo);

    //主动查询支付宝支付结果
    public void sendDelayPaymentResult(String outTradeNo,int delaySec ,int checkCount);

    void closePayment(String id);
}
